Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.smart.folder.layouts--layouts

This contribution is part of XML component org.nuxeo.ecm.platform.smart.folder.layouts inside nuxeo-platform-smart-folder-jsf-5.8.jar

Documentation

Layouts configuration for a smart folder, displaying the query builder (for the smart folder edition page) and the content view results (for the smart folder view page).

Extension Point

Extension point layouts of component WebLayoutManager.

Contributed Items

  • <layout name="nxql_incremental_smart_folder">
          <templates>
            <template mode="any">/layouts/layout_default_template.xhtml</template>
          </templates>
          <rows>
            <row>
              <widget>nxql_incremental_smart_folder_widget</widget>
            </row>
            <row>
              <widget>selected_rows</widget>
            </row>
            <row>
              <widget>sort_infos</widget>
            </row>
            <row>
              <widget>page_size</widget>
            </row>
          </rows>
          <widget name="nxql_incremental_smart_folder_widget" type="nxql_incremental_smart_query_widget">
            <labels>
              <label mode="any">label.smart.query.build</label>
            </labels>
            <helpLabels>
              <label mode="create">label.smart.query.build.help</label>
              <label mode="edit">label.smart.query.build.help</label>
            </helpLabels>
            <translated>true</translated>
            <fields>
              <field>sf:queryPart</field>
            </fields>
            <properties mode="any">
              <property name="selectionLayout">
                incremental_smart_query_selection
              </property>
              <property name="updateQueryPart">false</property>
            </properties>
            <properties widgetMode="edit">
              <property name="required">true</property>
            </properties>
          </widget>
          <widget name="selected_rows" type="layout">
            <labels>
              <label mode="any">label.search.results</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>cvd:selectedLayoutColumns</field>
            </fields>
            <properties widgetMode="edit">
              <property name="name">search_listing_ajax</property>
              <property name="mode">edit_columns</property>
              <property name="selectAllByDefault">true</property>
              <property name="required">true</property>
            </properties>
            <widgetModes>
              <mode value="view">hidden</mode>
            </widgetModes>
          </widget>
          <widget name="sort_infos" type="layout">
            <labels>
              <label mode="any">label.search.orderBy</label>
            </labels>
            <fields>
              <field>cvd:sortInfos</field>
            </fields>
            <translated>true</translated>
            <properties widgetMode="edit">
              <property name="name">search_listing_ajax</property>
              <property name="mode">edit_sort_infos_map</property>
              <property name="selectAllByDefault">true</property>
              <property name="required">false</property>
            </properties>
            <widgetModes>
              <mode value="view">hidden</mode>
            </widgetModes>
          </widget>
          <widget name="page_size" type="template">
            <labels>
              <label mode="any">label.contentview.pageSize</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>cvd:pageSize</field>
            </fields>
            <widgetModes>
              <mode value="view">hidden</mode>
            </widgetModes>
            <properties mode="any">
              <property name="template">/widgets/page_size_widget.xhtml</property>
            </properties>
            <properties widgetMode="edit">
              <property name="styleClass">langSelect</property>
            </properties>
          </widget>
        </layout>
  • <layout name="nxql_incremental_smart_folder_content_view">
          <templates>
            <template mode="any">/layouts/layout_div_template.xhtml</template>
          </templates>
          <rows>
            <row>
              <widget>content_view</widget>
            </row>
          </rows>
          <widget name="content_view" type="contentViewWithForms">
            <labels>
              <label mode="any">label.contentview.pageSize</label>
            </labels>
            <translated>true</translated>
            <widgetModes>
              <mode value="create">hidden</mode>
              <mode value="edit">hidden</mode>
            </widgetModes>
            <properties mode="any">
              <property name="contentViewName">
                nxql_incremental_smart_folder
              </property>
            </properties>
          </widget>
        </layout>

XML Source

<extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <documentation>
      Layouts configuration for a smart folder, displaying the
      query builder (for the smart folder edition page) and the content view
      results (for the smart folder view page).
    </documentation>

    <layout name="nxql_incremental_smart_folder">
      <templates>
        <template mode="any">/layouts/layout_default_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>nxql_incremental_smart_folder_widget</widget>
        </row>
        <row>
          <widget>selected_rows</widget>
        </row>
        <row>
          <widget>sort_infos</widget>
        </row>
        <row>
          <widget>page_size</widget>
        </row>
      </rows>
      <widget name="nxql_incremental_smart_folder_widget" type="nxql_incremental_smart_query_widget">
        <labels>
          <label mode="any">label.smart.query.build</label>
        </labels>
        <helpLabels>
          <label mode="create">label.smart.query.build.help</label>
          <label mode="edit">label.smart.query.build.help</label>
        </helpLabels>
        <translated>true</translated>
        <fields>
          <field>sf:queryPart</field>
        </fields>
        <properties mode="any">
          <property name="selectionLayout">
            incremental_smart_query_selection
          </property>
          <property name="updateQueryPart">false</property>
        </properties>
        <properties widgetMode="edit">
          <property name="required">true</property>
        </properties>
      </widget>
      <widget name="selected_rows" type="layout">
        <labels>
          <label mode="any">label.search.results</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>cvd:selectedLayoutColumns</field>
        </fields>
        <properties widgetMode="edit">
          <property name="name">search_listing_ajax</property>
          <property name="mode">edit_columns</property>
          <property name="selectAllByDefault">true</property>
          <property name="required">true</property>
        </properties>
        <widgetModes>
          <mode value="view">hidden</mode>
        </widgetModes>
      </widget>
      <widget name="sort_infos" type="layout">
        <labels>
          <label mode="any">label.search.orderBy</label>
        </labels>
        <fields>
          <field>cvd:sortInfos</field>
        </fields>
        <translated>true</translated>
        <properties widgetMode="edit">
          <property name="name">search_listing_ajax</property>
          <property name="mode">edit_sort_infos_map</property>
          <property name="selectAllByDefault">true</property>
          <property name="required">false</property>
        </properties>
        <widgetModes>
          <mode value="view">hidden</mode>
        </widgetModes>
      </widget>
      <widget name="page_size" type="template">
        <labels>
          <label mode="any">label.contentview.pageSize</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>cvd:pageSize</field>
        </fields>
        <widgetModes>
          <mode value="view">hidden</mode>
        </widgetModes>
        <properties mode="any">
          <property name="template">/widgets/page_size_widget.xhtml</property>
        </properties>
        <properties widgetMode="edit">
          <property name="styleClass">langSelect</property>
        </properties>
      </widget>
    </layout>

    <layout name="nxql_incremental_smart_folder_content_view">
      <templates>
        <template mode="any">/layouts/layout_div_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>content_view</widget>
        </row>
      </rows>
      <widget name="content_view" type="contentViewWithForms">
        <labels>
          <label mode="any">label.contentview.pageSize</label>
        </labels>
        <translated>true</translated>
        <widgetModes>
          <mode value="create">hidden</mode>
          <mode value="edit">hidden</mode>
        </widgetModes>
        <properties mode="any">
          <property name="contentViewName">
            nxql_incremental_smart_folder
          </property>
        </properties>
      </widget>
    </layout>

  </extension>